#include <d_diag/diag.h>
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-04     donghaomin       the first version
 */
#include "usr_data.h"

d_bule_revcmd d_revbuffer;

int dataInit(void)
{
    int ret = 0;
    memset((void*)&PersonData,InitValue,sizeof(PersonData));
    rt_kprintf("sizeof(PersonData) %d \n",sizeof(PersonData));
    for(unsigned char count = InitValue;count < DATA_SUM;count++) {
        PersonData.data[count].id = count;
        PersonData.data[count].state = DATA_UN_USED_Sta;
    }
    return ret;
}
d_bule_temp * getTempHandle(void)
{
    return &PersonData;
}
